結果 : python get class attribute if exists