Fix server.py to pass test_handle_connection