restart server.py changes and test