Change publisher to use sys.stdout for its output, and make sure to flush() it.

This makes it usable with runit, which is a much nicer way to run this kind of
program.