PyType::name is now PyType::qualname whereas PyType::name efficiently accesses the full name which includes the module name.
PyType::name
PyType::qualname