how to wrap a c++ function which takes in a function pointer in python using swig,test.f(0)