Sorry for the possible duplication of the question. I\'m using python 3.7 http.server (python -m http.server --cgi 8080) to test the webserver locally, it works
python -m http.server --cgi 8080