title: stderr.write; printing strings
body: <p>I am new to Python and having some trouble with the <code>stderr.write</code> function. I will try to illustrate it with code. Before I was doing this:</p>
  
  <pre><code>print "Unexpected error! File {0} could not be converted." .format(src)
  </code></pre>
  
  <p>But then I wanted to separate the error messages from other status messages so I tried doing this:</p>
  
  <pre><code>sys.stderr.write "Unexpected error! File %s could not be converted." src
  </code></pre>
  
  <p>But this results in error. I googled it as well but i couldn't find anything. Could anyone please help me out here. How can I print the string <code>src</code> using <code>stderr.write</code>?</p>