added code review comments to server.py