PyObject not PyType (closes #18494)