pygen