code: def _attend_process(self, proc, sleeptime):
          
          # print("attend:{}".format(proc.pid))
          try:
              proc.wait(timeout=sleeptime)
          except psutil.TimeoutExpired:
              return True
          return False
docs: Waits on a process for a given time to see if it finishes, returns True
          if it's still running after the given time or False as soon as it 
          returns.
  
          :param psutil.Popen proc: Process object opened by psutil.Popen()
          :param float sleeptime: Time to wait
          :return bool: True if process is still running; otherwise false