This relates to how to architect and create a solution that is maturing past something that is a snippet, or a set of routines into a code base where you have multiple files with routines and variables that may need to interact with each other.
"""
In this example lets say you have a module you want to use at:
"C:\Users\MyName\MyData\Code\MyModule.py"
There is a method in this file called "DoMyStuff()"
"""
#import the sys module and add the path to the code to sys.path so you can import from that path
import sys
CodePath = r"C:\Users\MyName\MyData\Code"
if not CodePath in sys.path:
sys.path.append(CodePath)
import MyModule #Imports the module for use
reload(MyModule) #Only required if you want to save and re-read the new code
MyModule.DoMyStuff() #Run the method from your file