Be sure we don't print more chars than the tty size.
make the terminal-size output only if sys.platform != 'win32'
Isolate the relative percentage computation

And add a test for it.
Simplify the code + testing
import fcntl only on unix
Merge pull request #28 from mozilla-services/fix-std-output

Be sure we don't print more chars than the tty size.