結果 : how to check instance of a class in python