def get_signed_headers(headers):
    """
    Get signed headers.

    :param headers: input dictionary to be sorted.
    """
    signed_headers = []
    for header in headers:
        signed_headers.append(header.lower().strip())
    return sorted(signed_headers)
def get_signed_headers ( headers ) : signed_headers = [ ] for header in headers : signed_headers . append ( header . lower ( ) . strip ( ) ) return sorted ( signed_headers )
Get signed headers.

    :param headers: input dictionary to be sorted.