Replaced use of .ob_type with Py_TYPE