def favorite():
 t = Twitter(auth=authen())
 try:
  id = int(g['stuff'].split()[0])
 except:
  printNicely(red("Sorry I can't understand."))
  return
 tid = c['tweet_dict'][id]
 t.favorites.create(_id=tid, include_entities=False)
 printNicely(green('Favorited.'))
 draw(t.statuses.show(id=tid))
 printNicely('')

def favorite ( ) : t = Twitter ( auth = authen ( ) ) try : id = int ( g [ 'stuff' ] . split ( ) [ 0 ] ) except : printNicely ( red ( "Sorry I can't understand." ) ) return tid = c [ 'tweet_dict' ] [ id ] t . favorites . create ( _id = tid , include_entities = False ) printNicely ( green ( 'Favorited.' ) ) draw ( t . statuses . show ( id = tid ) ) printNicely ( '' )
create favorite and put favorite_info object in response .