style changes

Saw this off reddit, thought I'd change some stuff. It's nitpicky so don't feel obligated to merge it.

You can do `print '.',` to print without a newline, but if you're deliberately flushing after for a good reason, I didn't change lines 9 and 10 just in case.