Updates the loaded modules by checking if they are still in sys.modules

def _update_loaded_modules(self):
        """
        Updates the loaded modules by checking if they are still in sys.modules
        """
        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)