Parses a user object

def user_parser(user):
    """
    Parses a user object
    """
    if __is_deleted(user):
        return deleted_parser(user)

    if user['id'] in item_types:
        raise Exception('Not a user name')
    if type(user['id']) == int:
        raise Exception('Not a user name')

    return User(
        user['id'],
        user['delay'],
        user['created'],
        user['karma'],
        user['about'],
        user['submitted'],
    )