Complete deploy.py for pyramid