code: def startThread(self):
          
          if self._thread is not None:
              return
          self._thread = NSThread.alloc().initWithTarget_selector_object_(self, 'runPowerNotificationsThread', None)
          self._thread.start()
docs: Spawns new NSThread to handle notifications.