improved server.py - hw3