def user_info(name, **client_args):
 matching_users = (user for user in list_users(**client_args) if (user.get('user') == name))
 try:
  return next(matching_users)
 except StopIteration:
  pass

def user_info ( name , ** client_args ) : matching_users = ( user for user in list_users ( ** client_args ) if ( user . get ( 'user' ) == name ) ) try : return next ( matching_users ) except StopIteration : pass
get information about given user .