'Notify all listeners'

def notify(self, event, ids=[]):

    for listener in self.listeners:
        try:
            listener(event, ids)
        except:
            traceback.print_exc()
            continue
