I have a game, written in Python, and I use Panda3d.
Now I want to have a possibility for restart, that is, I want to press a button with the result that the main is executed again, just as if the current instance of the game had never existed.

Is there a simple way to do this?