Update pwgen.py

Apparently, I did not have a python reference available when I first wrote this.