結果 : python get attribute of object if exists