[PATCH v2 12/28] patman: Update flushing Print() for Python 3