Nearme is a project mainly written in Python, it's free.
nearme is a geospatial referential search of cities near a given a latitude and longitude.