def search_items(bus, attributes):
 service_obj = bus_get_object(bus, SS_PATH)
 service_iface = dbus.Interface(service_obj, SERVICE_IFACE)
 (locked, unlocked) = service_iface.SearchItems(attributes, signature='a{ss}')
 for item_path in (locked + unlocked):
  (yield Item(bus, item_path))

def search_items ( bus , attributes ) : service_obj = bus_get_object ( bus , SS_PATH ) service_iface = dbus . Interface ( service_obj , SERVICE_IFACE ) ( locked , unlocked ) = service_iface . SearchItems ( attributes , signature = 'a{ss}' ) for item_path in ( locked + unlocked ) : ( yield Item ( bus , item_path ) )
returns a generator of items in all collections with the given attributes .