Update getDistance.py

Added a line printing error message if wrong names are given