Switch to using print_function in utils, and flush the log after writing
Merge pull request #11 from Rosuav/use_print_function

Switch to using print_function in utils, and flush the log after writing