There are some really weird obscure failure modes of importing a module. You can actually find out a lot of information about the module without even touching it. It's almost like a look before you leap kind of thing with import. And then what you could do is make a dummy module to take its place temporarily. Like an empty module and then you could program that to auto load the source code when it's accessed later on.