def list_with_component(l, component):
    return [x for x in l if (x.id() == component.key().id())]
def list_with_component(l, component):
    return [x for x in l if (x.id() == component.key().id())]