結果 : python class check if attribute exists