def iterModules(self):
        """
        Yield all top-level modules on my sysPath.
        """
        for entry in self.iterEntries():
            for module in entry.iterModules():
                yield module

        Yield all top-level modules on my sysPath.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/modules.py