結果 : check if self has attribute python