def spawn(self, engine): self.engine = engine self.process = subprocess.Popen(self.command, stdout=subprocess.PIPE, stdin=subprocess.PIPE, bufsize=1, universal_newlines=True) self._receiving_thread.start()