how do i print some string just below the loop simultaneously in python
<p>i want to do multi process simultaneously, 
for example i want to print some string  just below the looping underway...</p>

<pre><code>import time
from threading import Thread
print 'top'
def foo():   
  for i in range(1,10):
    sys.stdout.write(str('\r%s\r'%i))
    sys.stdout.flush()
    time.sleep(1)
timer = Thread(target=foo)
timer.start()
'''bottom'
</code></pre>

<p>i wanna the code above will looks like this</p>

<pre><code>top
'''looping counter is underway'''
bottom
</code></pre>
