def theme_filter(theme):
    """ filter the theme string, of something other than light or dark is provided, 
        then it returns light """

    return {
        "light": "light",

        "dark": "dark",
    }.get(theme, "light")