def notify(self, events): if 'event_type' in events: print "wtf" if events['event_type'] is self.core.constants['EVENT_FINISHED']: self.set_tray_flashing_on()