added setup.py and fixed for changes in Pyramid framework