made progress in the implementation of mpi_ptmc.py