def iter_libraries(names):
    reg = get_library_registry()
    return (v for v in reg.itervalues() if v.name in names)
def iter_all_libraries():
    reg = get_library_registry()
    return reg.itervalues()