restarting with python