An MPI-based C++ or Python library for easy distributed pipeline processing