def get_gif(api_key, gif_id):
 url = 'http://api.giphy.com/v1/gifs/{}?api_key={}'.format(gif_id, api_key)
 r = urlopen(url)
 return json.loads(r.read().decode('utf-8'))

def get_gif ( api_key , gif_id ) : url = 'http://api.giphy.com/v1/gifs/{}?api_key={}' . format ( gif_id , api_key ) r = urlopen ( url ) return json . loads ( r . read ( ) . decode ( 'utf-8' ) )
returns dict with gif informations from the api .