Set Python IO unbuffered so that log files are updated immediately.