Pythons older than 3.11 don't have PyType_GetName

Here is a PR to fix that: [stdlib] Fix PyType_GetName usage for older pythons by winding-lines · Pull Request #4885 · modular/modular · GitHub