title: Using python to talk to a terminal program back/forth
body: <p>So I've been using subprocess and pexpect 
  to try to interact with a separate program running in the terminal. I need to feed it a command, with arguments, and be able to receive it's response and potentially send it more commands.</p>
  
  <p>With subprocess, I have only been able to launch a terminal, but not feed it commands. Or I can pass ONE line of command to an emulated terminal within python. The issue it that it's one-and-done and I can't really interact with it.</p>
  
  <p>pexpect seems to only be able to initiate one command, and then respond to the terminal in an automated fashion, I couldn't find relevant and up to date documentation that went over what I needed.</p>
  
  <p>Are there better modules to use for this? Or am I using them the wrong way?
  -Thanks,
  -Sean</p>