ilastik.py: In headless mode, show log output on the console.
PixelClassification: Flush stdout while displaying label-count progress.