Use http.server or SimpleHTTPServer for the test script, depending on the major python version