Manually add in `modules` to be tracked by the module manager.

        `modules` may be a single object or an iterable.

def add_to_loaded_modules(self, modules):
        """
        Manually add in `modules` to be tracked by the module manager.

        `modules` may be a single object or an iterable.
        """
        modules = util.return_set(modules)
        for module in modules:
            if not isinstance(module, str):
                module = module.__name__
            self.loaded_modules.add(module)