Update pygs.md

Code further simplified.