complete deploy.py for pyramid.