simplified getCoordinates.py