'Exclude listeners when saving the listener\'s state, since they may be
ephemeral.'

def __getstate__(self):

    try:
        state = super(NotifierMixin, self).__getstate__()
    except AttributeError:
        state = self.__dict__.copy()
    state['_listeners'] = None
    return state
