Use dict versioning in Py3.6+ to make the lookup of Python module globals almost as fast as C globals.