def get_usernames(user_ids):
 users_settings = get_users_settings(user_ids)
 return [(us.username if us else None) for us in users_settings]

def get_usernames ( user_ids ) : users_settings = get_users_settings ( user_ids ) return [ ( us . username if us else None ) for us in users_settings ]
gets usernames corresponding to the given user_ids .