def module_del(self, key):
        """
        Deregister from python module change events.
    """
        if key in self._module_event_map:
            del self._module_event_map[key]
        if key in self._watch_modules.names:
            self._watch_modules.remove(key)
Deregister from python module change events.