Fix a scoping issue where an UnboundLocalError was triggered if a
lazy-loaded module was already in sys.modules.
3 files changed