Re-opened sys.stdout in unbuffered mode so that progress info is pushed to the browser right away.