def run(self, method, *args, **kwargs):
    if (self._active_tool == self.__class__.tool_name):
        return method(*args, **kwargs)
def run(self, method, *args, **kwargs):
    if (self._active_tool == self.__class__.tool_name):
        return method(*args, **kwargs)