def add_env_headers(headers, env_vars):
 headers.update(dict(((('x-kumascript-env-%s' % k), base64.b64encode(json.dumps(v))) for (k, v) in env_vars.items())))
 return headers

def add_env_headers ( headers , env_vars ) : headers . update ( dict ( ( ( ( 'x-kumascript-env-%s' % k ) , base64 . b64encode ( json . dumps ( v ) ) ) for ( k , v ) in env_vars . items ( ) ) ) ) return headers
encode env_vars as kumascript headers .