def unload(self, module): del self.modules[str(module.__name__)] # XXX Should this try to clear the module's namespace?