In the Python documentation of the import system, there is the following section (bold emphasis mine):
5.8. Special considerations for __main__
__main__