flush output on print

I'm pretty sure this is how the Python logging generally behaves. And it's the way I like it.
Merge pull request #8 from sharnett/master

flush output on print