separated write_pw.py from write