def METHOD_NAME(self, data=None):
    if hasattr(self, '_name') and self._name == self.__class__.__name__:
        self._name = base.__name__
    self.__class__ = base
    return base.METHOD_NAME(self, data)