def build_filtered_mod_list(filt_string=''):
    modules = sorted((name for (name, mod) in list(sys.modules.items()) if mod_exists(mod)))
    result = [urwid.AttrMap(SelectableText(mod), None, 'focused selectable') for mod in modules if (filt_string in mod)]
    new_mod_text.set_text(("<<< IMPORT MODULE '%s' >>>" % filt_string))
    result.append(new_mod_entry)
    return result
def build_filtered_mod_list(filt_string=):
    modules = sorted((name for (name, mod) in list(sys.modules.items()) if mod_exists(mod)))
    result = [urwid.AttrMap(SelectableText(mod), None, 'focused selectable') for mod in modules if (filt_string in mod)]
    new_mod_text.set_text(("<<< IMPORT MODULE '%s' >>>" % filt_string))
    result.append(new_mod_entry)
    return result