Modified deploy.py