only clear a module's __dict__ if the module is the only one with a reference to it #7140
3 files changed