"in python, how do i know when a process is finished?",self.process.terminate()