Long story short: pythonw.exe does nothing, python.exe accepts nothing (which one should I use?)
pythonw.exe
python.exe
test.py:
print \"a\"
I was struggling to get this to work for a while. Once you change the extension to .pyw, make sure that you open properties of the file and direct the "open with" path to pythonw.exe.