Removing stuff from the `sys.modules` dictionary had side-effects.