結果 : if attribute exists python