code cleanup in toolchain/mpi.py

code cleanup for https://github.com/hpcugent/easybuild-framework/pull/1098