def reply_all():
 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]
 original_tweet = t.statuses.show(id=tid)
 text = original_tweet['text']
 nick_ary = [original_tweet['user']['screen_name']]
 for user in list(original_tweet['entities']['user_mentions']):
  if ((user['screen_name'] not in nick_ary) and (user['screen_name'] != g['original_name'])):
   nick_ary.append(user['screen_name'])
 status = ' '.join(g['stuff'].split()[1:])
 status = ((' '.join([('@' + nick) for nick in nick_ary]) + ' ') + str2u(status))
 t.statuses.update(status=status, in_reply_to_status_id=tid)

def reply_all ( ) : 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 ] original_tweet = t . statuses . show ( id = tid ) text = original_tweet [ 'text' ] nick_ary = [ original_tweet [ 'user' ] [ 'screen_name' ] ] for user in list ( original_tweet [ 'entities' ] [ 'user_mentions' ] ) : if ( ( user [ 'screen_name' ] not in nick_ary ) and ( user [ 'screen_name' ] != g [ 'original_name' ] ) ) : nick_ary . append ( user [ 'screen_name' ] ) status = ' ' . join ( g [ 'stuff' ] . split ( ) [ 1 : ] ) status = ( ( ' ' . join ( [ ( '@' + nick ) for nick in nick_ary ] ) + ' ' ) + str2u ( status ) ) t . statuses . update ( status = status , in_reply_to_status_id = tid )
reply to all .