Used a safer loader that preserves sys.modules perfectly.