I would like to be able to write a C++ function, to be wrapped into some python, to be able to communicate over pyMPI. As pyMPI is based on C++ I figure that this should be possible, although I'm not sure of where to start. I know the basics of swig and pyMPI, but not how I would do this. Does anyone know if this is possible and where to start?