Fixes for MapReduce function used without buffer

This should allow the core.py framework to be used by applications which do not use a buffer for MPI