I could swear we already ran into and fixed this but I cannot find another issue for it, and the only applicable test I can find specifically calls out builtins and not other imported modules.
Symptomatic case is fabric/fabric#1823 where a user is (unintentionally) loading a tasks module as a runtime config file. The presence of the os module then causes an explosion as modules cannot be pickled, which copy.copy does internally (ugh).