Update yapwgen.py

just needed a small change to make it more modular, since I'm using this python script in combination for a php site.