結果 : python test if object has attribute