Before a job is submitted mpi4py modifies the environment in
a way that is invisible to Python. This modified environment is
inherited by the submitted jobs and was causing them to crash. This
change resets the environment for the subprocess that submits that job.
Before a job is submitted mpi4py modifies the environment in a way that is invisible to Python. This modified environment is inherited by the submitted jobs and was causing them to crash. This change resets the environment for the subprocess that submits that job.