super(MyThread, self).__init__()

def run(self):
    self.is_running = True
while self.is_running:
    time.sleep(1)
blah = poll()
self.widget.update(blah)

def stop(self):
    self.is_running = False
In python, is there a way to make threads that die when there is no longer a reference to them?