pyInterface: genpw.py -> eventFileWriter

Implement eventFileWriter into genpw.py.