data = [DictItem('test1', 1), DictItem('test2', 2), DictItem('test3', 3),
    DictItem('test4', 4)]
Python: Get values (objects) from a dictionary of objects in which one of the object's field matches a value (or condition)