replace console output in python,sys.stdout.write('\rDoing thing %i' % i)