Refactoring the Jamis Buck NPC generator for Python 3.x