added snakepit: the class factory and wrote a bunch of related BS into
sheddning.py