def signing_format_message(method, headers_dict, body_dict):
 headers_str = '{}\n\n{}'.format(method, header_string(headers_dict))
 body_str = body_string(body_dict)
 message = (headers_str + body_str)
 return message

def signing_format_message ( method , headers_dict , body_dict ) : headers_str = '{}\n\n{}' . format ( method , header_string ( headers_dict ) ) body_str = body_string ( body_dict ) message = ( headers_str + body_str ) return message
given a dictionary of headers and a dictionary of the json for the body .