Flush parameter is not compatible with python 2.7
Flush parameter is not compatible with python 2.7

In order to keep python 2.7 compatibility, switch from using the
“flush” parameter for the print function to using sys.stdout.flush().

ndchristian/Leo