Fix signature of cpp print method in swig interface file to fix python wrapping test failure.