python36: fix mpi test by fixing popen
Created by: jrmcgaha-dev
The conversion to python 3.6 was mostly complete with this pr, but there were some lingering issues with an mpi test timing out travis if printing its output was allowed. Popen needed an encoding to have stdin read/write with strings rather than bytes, so that was added and the printing uncommented so that it would function as originally intended.