fixed syntax errors in server.py