How to compare type of an object in Python? How to compare type of an object in Python? python python