title: Python subprocess communicate kills my process
body: <p>Why does communicate kill my process?  I want an interactive process but communicate does something so that I cannot take raw_input any more in my process.</p>
  
  <pre><code>from sys import stdin 
  from threading import Thread
  from time import sleep
  
  if __name__ == '__main__':
      print("Still Running\n")
      x = raw_input()    
      i = 0
      while ('n' not in x ) :
          print("Still Running " + str(i) + " \r\n")
          x = raw_input()
          i += 1
  
      print("quit")
  
  
  
  print(aSubProc.theProcess.communicate('y'))
  print(aSubProc.theProcess.communicate('y'))
  </code></pre>
  
  <p>exception!</p>
  
  <pre><code>self.stdin.write(input)
  ValueError: I/O operation on closed file
  </code></pre>