In Python, the import statement helps to open modules. Hence, doing this allows you to run the module's code while maintaining the definition scopes so your current file or files can utilize them.