use BufferedOutput instead of Output
set default flush_interval to 1
Merge pull request #6 from choplin/buffered_output

use BufferedOutput instead of Output