def user_cleaner(user):
    """Converts none or _ to library, makes username lowercase

    Args:
        user (str):

    Returns:
        str: cleaned username

    """
    if user == "_" or user == "":
        return "library"
    try:
        return user.lower()
    except AttributeError:
        return user