def restore(self):
        """
        Unloads all modules that weren't loaded when save_modules was called.
        """
        sys = set(self._sys_modules.keys())
        for mod_name in sys.difference(self._saved_modules):
            del self._sys_modules[mod_name]
Unloads all modules that weren't loaded when save_modules was called.