I\'m bit confused about how the global variables work. I have a large project, with around 50 files, and I need to define global variables for all those files.
Using from your_file import * should fix your problems. It defines everything so that it is globally available (with the exception of local variables in the imports of course).