According to the pycxx README and to the pysvn devloper PyCXX 7.12 is not compatible with Python 3.9 because the tp_print field has been removed from one of the structures. My attempts to use PyCXX with Python 3.9 seem to confirm this.
Is it a bug that the PyCXX ebuild allows it to be installed for the Python 3.9 target?