Move class Globals from ir.py to compiler.py