code: def _update_loaded_modules(self):
          
          system_modules = sys.modules.keys()
          for module in list(self.loaded_modules):
              if module not in system_modules:
                  self.processed_filepaths.pop(module)
                  self.loaded_modules.remove(module)
docs: Updates the loaded modules by checking if they are still in sys.modules