The python script starts every time you call the server unless you keep it running. Here you can find more details.