I have simply created a python server with :
python -m SimpleHTTPServer
I had a .htaccess (I don\'t know if it is usefull with python serve
You can use a simpler approach and use the --cgi option launching the python3 version of http server:
--cgi
python3 -m http.server --cgi
as pointed out by the command:
python3 -m http.server --help