Add a private method to set the pattern code (for testing Python builders) and fix some stupid syntax errors from the last commit
Add a private method to set the pattern code (for testing Python builders) and fix some stupid syntax errors from the last commit

moreati/ppeg,moreati/ppeg