Switch from Python 2 to Python 3 for the MPI variants.
Upgrade MPI4Py codes to Python 3.