This fixes the errors when the API key is configured to require a referer for all the requests.
2to3 -f future . -w