PI = 3.1416 # constants are a good use of global variables T = typeVar('T') # typeVars will almost always need to be global def GenericClass(Generic[T]): pass