def __len__(self):
    return 0

def __call__(self, *args, **kwargs):
    return None

def __contains__(self, item):
    return False

def __iter__(self):
    return self

def next(*args):
    raise StopIteration
NULL = NULLType('NULL', (type,), {})
Custom placeholder like None in python