class Payload(object):

    def __init__(self):
        print('payload ctor')


class Context(object):

    def __init__(self):
        pass

def __enter__(self):
    pass
Writing a Python class that can only be used as a context manager