Since Google Gears has been shut down since March 2011, the time has come to also say goodbye to the Geolocation API that powered Google Gears. The Google Gears Geolocation API will stop responding to requests on November 17, 2012.
The code in WPS is ancient and used an unofficial API (I think we got it from looking at how Firefox did things) so we've decided to remove wps.py as it wasn't working properly anyways due to what you mentioned.
In shodan/wps.py, the GoogleLocation will not work anymore.
https://code.google.com/p/gears/wiki/GeolocationAPI:
According to StackOverflow you should look into Google location API. Example:
https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_API_KEY