'Call registered function for event. If `msg` is not empty use it.'

def _notify(self, event, msg=''):

    observer_data = self._reg_funcs.get(event, None)
    if (observer_data is not None):
        (f, _msg) = observer_data
        f((msg or _msg))
