import urllib.request, urllib.parse, urllib.error
import json
url = (
    """http://maps.googleapis.com/maps/api/directions/json?origin=Chicago,IL&destination=Los+Angeles,CA&waypoints=Joplin,MO|Oklahoma+City,OK&sensor=false"""
    )
result = json.load(urllib.request.urlopen(url))
HTTP-запросы и парсинг JSON в Python