modify server.py to use handle_conn