Create min_dist.py