結果 : check if object contains attribute python