結果 : python check if object in list by attribute