def transform_headers(headers):
 for (key, value) in headers.items():
  headers[key] = str(value)
 return headers

def transform_headers ( headers ) : for ( key , value ) in headers . items ( ) : headers [ key ] = str ( value ) return headers
boto url-encodes values unless we convert the value to str .