title: How to reset simulation without killing extern bot process
body: <p>I'm trying to use reinforcement learning in Webots with keras-rl, but resetting the world with supervisor bot kills the whole python process. Is there a way to reset the simulation without killing the process?</p>
  
  <p>I'm running Ubuntu and using IntelliJ Idea for running the bot.</p>
  
  <pre><code>robot.simulationReset() # this resets the simulation
  # here the whole process dies
  </code></pre>
  
  <p><strong>edit</strong>.
  The basic structure I'm having now is like <a href="https://gist.github.com/mikko/424018819ba3cb10f5780cb7c74cbfb7" rel="nofollow noreferrer">this</a></p>
  
  <p>Also tried to start and kill the whole simulator with subprocess.Popen, but it didn't work because the controller does not reconnect to simulator. It also cannot be initialized again because of some internal logic preventing initialization more than once.</p>