how to restart a program in python