[PATCH 11/22] patman: Update flushing Print() for Python 3