Flush stdout after each entry
   Helps in cases like ipython where a traceback might get mixed in
   with the output.