human
OSError: [WinError 193] %1 is not a valid Win32 application
assistant
Here is some code to run script 'hello.py' with argument 'htmlfilename.htm' on terminal using python executable

subprocess.call(['python.exe', 'hello.py', 'htmlfilename.htm'])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.