title: TeamCity: wrong messages order in Build Log when writing to stderr and stdout
body: <p>Simple python script:</p>
  
  <pre><code>for i in range(0, 5):
    print "ok"
    sys.stderr.write('err\r\n')
  </code></pre>
  
  <p>When executing this script under TeamCity (build step), following output appears in Build Log tab:</p>
  
  <pre><code>ok
  err
  ok
  ok
  ok
  err
  ok
  err
  err
  err
  </code></pre>
  
  <p>Messages go in wrong completely random order.</p>
  
  <p>Please suggest how to make messages go in same order they are written to output.</p>
  
  <p>Thanks.</p>