title: Send commands to an interactive shell from Python
body: <p>Is there a way to send command to another interactive shell ? Let's take the example of the meterpreter shell used in metasploit. Could it be a way to say command to this shell from python code, as soon as I get control of a computer and have a meterpreter shell to play with ? </p>
  
  <p>I mean All this from python code. </p>