PyCPP: Move the function defs out of the header