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