Yurttas/PL/SL/python/docs/core-python-programming/doc/16/lib/module-main.html
3.34 __main__ -- Top-level script environment.
This module represents the (otherwise anonymous) scope in which the interpreter's main program executes -- commands read either from standard input or from a script file.