ensure stdout is flushed immediately during pretty_print
Merge pull request #44 from karenetheridge/topic/flush_stdout

ensure stdout is flushed immediately during pretty_print