If the script is run as a standalone application, name is set to main. If the script is imported, name is set to the name of the module.