def put_headers_in_environ(headers, environ):
 for (key, value) in headers:
  environ[('HTTP_%s' % key.upper().replace('-', '_'))] = value

def put_headers_in_environ ( headers , environ ) : for ( key , value ) in headers : environ [ ( 'HTTP_%s' % key . upper ( ) . replace ( '-' , '_' ) ) ] = value
given a list of headers .