Revised genDeployment.py