結果 : python check whether class has attribute