code: def _restart_target(self):
          
          if self._server:
              if self._server.returncode is None:
                  self._server.kill()
                  time.sleep(0.2)
          self._server = subprocess.Popen("python session_server.py", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
          time.sleep(0.2)
docs: Restart our Target.