Fixed a few bugs in server.py