creating new type and check isinstance using python code example Example: isinstance python 3 not running isinstance(object, classinfo)