PyMek was created as part of a Cand. Scient. Thesis, in order to learn a thing or two...
You can download the thesis here.
It needs more examples, but too late now.