Python 2 not flushing stdout causing status output to appear to be really slow