change localhost server to twistd because Python BasicHTTPServer was extremely slow