GLOBAL.py
VAR = 0 def getVar(): global VAR return VAR def setVar(v): global VAR VAR = v
mod_1.py
from GLOBAL import setVar setVar(1)
mod_2.py
from GLOBAL import getVar print(getVar())