'iterate over all modules'

def iter_modules(self):

    l = []
    for (loader, module_name, is_pkg) in pkgutil.iter_modules((modules.__path__ + ['modules'])):
        if (module_name == 'lib'):
            continue
        try:
            (yield self.get_module(module_name))
        except ImportError as e:
            logging.warning(('%s    :    module    %s    disabled' % (e, module_name)))
