converted calculateDistanceInMetersBetweenCoord function to python