Send data to the browser while waiting (Python)
<p>I have the following code</p>

<pre><code>print "Starting stage 1&lt;br&gt;"

# Something that takes about 5 seconds
time.sleep(5)

print "Stage 1 complete"
</code></pre>

<p>I view the script with my browser as it's part of a web-app, the problem is that it's displaying all of it together, I want it to display first the starting message before it starts and then add the completion message after it's complete.</p>

<p>What do I use to push information to the browser in this fashion?</p>
