def get_templates():
 injected = {}
 for (name, data) in templates.items():
  injected[name] = dict([(k, (v % env)) for (k, v) in data.items()])
 return injected

def get_templates ( ) : injected = { } for ( name , data ) in templates . items ( ) : injected [ name ] = dict ( [ ( k , ( v % env ) ) for ( k , v ) in data . items ( ) ] ) return injected
returns each of the templates with env vars injected .