The package needs porting to Python 3.13.
Simple PYTHON_COMPAT change seems to work (ebuild compiles/installs and able to build kernel with resulting genkernel)
I can confirm that. Successfully built an initramfs using Python 3.13 after simple PYTHON_COMPAT change in the ebuild.