peg.py: Wrap class