flush print to stdout