for city in allcities:
    distance = HaversineDistance((self.location.lat, self.location.lon), (
        city.location.lat, city.location.lon))
if not distance >= kms:
    cities.append((city.name, int(distance)))
cities.remove(cities[0])
return cities
Calculate distance between cities & find surrounding cities based on GeoPT, in Python on Google App Engine