結果 : python check if class object has attribute