def _ImportDeployTemplate():
 deploy_template = 'viewfinder.backend.prod.deploy.{0}'.format(sys.argv[1])
 __import__(deploy_template)
 servers = sys.modules[deploy_template].__dict__['servers'][0]
 setup_script = sys.modules[deploy_template].__dict__['setup_script'][0]
 return (servers, setup_script)

def _ImportDeployTemplate ( ) : deploy_template = 'viewfinder.backend.prod.deploy.{0}' . format ( sys . argv [ 1 ] ) __import__ ( deploy_template ) servers = sys . modules [ deploy_template ] . __dict__ [ 'servers' ] [ 0 ] setup_script = sys . modules [ deploy_template ] . __dict__ [ 'setup_script' ] [ 0 ] return ( servers , setup_script )
returns the setup_script and servers objects from the deployment template specified by the first command line argument .