distance program segfaults on D2, fix later. Maybe has to do with || instead of && in the merge phase
Fix distance script command line arguments in python script