separated write_pw.py from write
user input for text
fixed run for user input