adding c++/cython callback wrapper