Solved: Python script pausing in cmd

Question:

I am running a few Python scripts at the same time. They are running in windows CMD.
I never knew that you can externally pause a Python script running in CMD.
If I hold the mouse button for a few seconds the script pauses and not just the output the execution as well.
For simplicity’s sake I am showing you a very simple example:
Based on documentation:
http://timgolden.me.uk/pywin32-docs/win32console__GetStdHandle_meth.html
http://timgolden.me.uk/pywin32-docs/PyConsoleScreenBuffer__GetConsoleMode_meth.html
http://timgolden.me.uk/pywin32-docs/PyConsoleScreenBuffer__SetConsoleMode_meth.html

https://docs.microsoft.com/en-us/windows/console/setconsolemode
http://www.gaclib.net/CodeIndexDemo/Gaclib/SourceFiles/consoleapi.h.html

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com