updated min_difference.py again. now fully working, but untested