結果 : check if object is an instance of a class python