Some utility classes for working with MPI in python