Refactored packstack_deploy.py