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

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