title: Communicate with subprocess by sending int data
body: <p>I am using <code>subprocess.Popen</code> to launch a new program which expects int data from stdin. </p>
  
  <pre><code>proc = Popen('command', shell=False,stdout=PIPE, stdin=PIPE, stderr=STDOUT)
  proc.communicate(1)
  </code></pre>
  
  <p>Got error as </p>
  
  <pre><code>TypeError: 'int' object is unsubscriptable
  </code></pre>
  
  <p>Can we have any other way out by which I can launch a new program and pass int data?</p>