Try this Python code.
But you have to divide points into 2 separated blocks first. (Manually, GroupByDistance or other)