Added the use of generate_tree into server.py and test_http.py