Modules can read the global all they want, but the moment you set a value to it without first declaring in the module that it is a global, you're creating a local variable and not setting the global. Use the statement "global varname" in the code somewhere before the set. Modules which do not set it don't need this declaration. A reference: