結果 : how to do a type check in python