fork on https://bitbucket.org/podhmo/pyramid_peewee