def lookup_portion(twitter, user_ids):
 users = {}
 kwargs = dict(user_id=','.join(map(str, user_ids)), skip_status=1)
 for u in twitter.users.lookup(**kwargs):
  users[int(u['id'])] = u['screen_name']
 return users

def lookup_portion ( twitter , user_ids ) : users = { } kwargs = dict ( user_id = ',' . join ( map ( str , user_ids ) ) , skip_status = 1 ) for u in twitter . users . lookup ( ** kwargs ) : users [ int ( u [ 'id' ] ) ] = u [ 'screen_name' ] return users
resolve a limited list of user ids to screen names .