Move globals from emu.py to IPXCore

Why am I doing it this way.