Merge _globals.py into _eventloop.py