結果 : python check if list contains element with attribute