timer under console

import time
for value in range(20):
info = 'remaining %2d seconds' % value
print info,
time.sleep(1)
print '\b'*(len(info)+2), # len(info) + 2