import sys sys.stdout.write('%s\r'%foo)