Fixed the errors in server.py