Better variable names in min_distance.py