def read_url(url):
 logging.debug('reading {url} ...'.format(url=url))
 r = urlopen(url).read()
 return json.loads(r.decode('UTF-8'))

def read_url ( url ) : logging . debug ( 'reading {url} ...' . format ( url = url ) ) r = urlopen ( url ) . read ( ) return json . loads ( r . decode ( 'UTF-8' ) )
reads given url as json and returns data as loaded python object .