結果 : python class if attribute exists