Fixes #1153: Change Windows+Py3 workaround code to flush when finished.
Fixes #1153: Change Windows+Py3 workaround code to flush when finished.

This avoids a case where the last chunk might not be output in iPython Notebook on Windows.

sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments,sol/pygments