Description
When Python imports a module, it runs all the code in that module. So if your Python file is meant to be imported as a module, be careful not to put side effects at the top-level of your .py file.
When Python imports a module, it runs all the code in that module. So if your Python file is meant to be imported as a module, be careful not to put side effects at the top-level of your .py file.