def is_not_none(val):
    """Check for values equivalent to None

    This will return True if val is not on of  None, 'none', 'None'
    """
    if not isinstance(val, (type(None), str)):
        return True
    return val not in [None, 'none', 'None']