src/_path.cpp: Reduce PyCXX dependencies