I first define this function:
import math
def distance(a, b): """Returns Euclidean distance in points (a, b). "