support Pyramid>=1.3