added restart to python scripts