class a(object):

    def __init__(self):
        self.__class__ = type(self.__class__.__name__, (self.__class__,), {})
self.__class__.__call__ = lambda x: x
Problem with making object callable in python