def disable(self, name=None):
    if name:
        self._handlers[name].enabled = False
    else:
        self.enabled = False
def disable(self, name=None):
    if name:
        self._handlers[name].enabled = False
    else:
        self.enabled = False