script/autobuild.py: add a do_print() wrapper function that flushes after each message