import urllib.request, urllib.parse, urllib.error, json
url = 'http://maps.googleapis.com/maps/api/geocode/json?address=google'
response = urllib.request.urlopen(url)
data = json.loads(response.read())
print(data)
How to get JSON from webpage into Python script