結果 : python check if object is a certain type