Fix cython3
I'm not sure if this actually works, but it gets cython to compile with py310.

- [x] closes #34014
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
