This is my code:
def self_destruct(self): self.flag = 1 listener.stop() os.remove(self.path) def start(self): global listener with Listener(o