title: python: read data from stdin and raw_input
body: <p>I want to pass some data to a python script using echo and after that promote the user to input options. I am running through an <code>EOFError</code> which I think is happening since I read all data in <code>sys.stdin</code>. How do I fix this issue? Thanks!</p>
  
  <p>code.py:</p>
  
  <pre><code>x = ''
  for line in sys.stdin:
    x += line
  y = raw_input()
  </code></pre>
  
  <p>usage:</p>
  
  <pre><code>echo -e -n '1324' | ./code.py
  </code></pre>
  
  <p>error at <code>raw_input()</code>:</p>
  
  <pre><code>EOFError: EOF when reading a line
  </code></pre>