PEP8 fixes for GeoLocator

And actually import the socket module