hwrt/create_pfiles.py: newline argument not in binary mode