def find_user(name, api_key=None):
 if (not api_key):
  api_key = _get_api_key()
 ret = list_users(api_key)
 if ret['res']:
  users = ret['message']
  if users:
   for user in range(0, len(users)):
    if (users[user]['name'] == name):
     return users[user]
 return False

def find_user ( name , api_key = None ) : if ( not api_key ) : api_key = _get_api_key ( ) ret = list_users ( api_key ) if ret [ 'res' ] : users = ret [ 'message' ] if users : for user in range ( 0 , len ( users ) ) : if ( users [ user ] [ 'name' ] == name ) : return users [ user ] return False
find a user by name and return it .