結果 : python get object attribute if exists