I am trying to automate some calculations done by the computational chemistry program GROMACS. I am using pexpect to spawn GROMACS (gmx). I parse the output to find the keyw