#NEWLINE# def _urlopen_as_json( self , url , headers = None ) : #NEWLINE# #INDENT# 'Shorcut for return contents as json' #NEWLINE# req = Request ( url , headers = headers ) #NEWLINE# return json . loads ( urlopen ( req ) . read ( ) )