Fixed some comptibility issues with nompi4py.py