Added flush to cli.py for python3 buffered stdout
Added flush to cli.py for python3 buffered stdout