nifty. I've commented it, and edited it so it works in the interactive python prompt, and in both python2 and python3. Replace 50 with the value you'd get from stackoverflow.com/a/943921/711085 for exact accuracy.
–
ninjageckoMar 9 '12 at 20:06

@andrewcooke: The \b "rewinds: the cursor to the beginning of the line, so I'm actually overwriting the line when I print out Left. You could use print, though. @FJ did.
–
BlenderMar 9 '12 at 20:21

right, but there's no need to mess around with sys.stdout, you can still use idiomatic python print (there's nothing special about \b that requires sys.stdout).
–
andrew cookeMar 9 '12 at 20:29