fixed some things in mpi.py