[Python-checkins] bpo-39573: Add Py_IS_TYPE() function (GH-18488)