To use: from CPyGlobals import globals Then either set the global variable using globals.var = value
or use the global variable using var2 = globals.var. For this last to work the variable needs to be set of course.
Note: there are probably better ways to do this, when I learn Python better I might find out how ; )