def evaluate_template(text, install_environment):
 return Template(text).safe_substitute(get_env_var_values(install_environment))

def evaluate_template ( text , install_environment ) : return Template ( text ) . safe_substitute ( get_env_var_values ( install_environment ) )
substitute variables defined in xml blocks from dependencies file .