Update console_output.py

Call QCoreApplication.processEvents() after writing to Python console, enabling incremental output from Python scripts. Fixes #8343.
Merge pull request #779 from ajdunlap/patch-1

Call QCoreApplication.processEvents() after writing to Python console. Fix #8343