Update _compat.py

Support both __builtins__ as a dictionary and a module.