Python wrappers for mpi and hdf5 (with mpi support for hdf5)

This is the continuation of pull-request #3316.