def _ParseHeader(header):
 (key, _, value) = header.partition(':')
 return (key.strip(), value.strip())

def _ParseHeader ( header ) : ( key , _ , value ) = header . partition ( ':' ) return ( key . strip ( ) , value . strip ( ) )
parses a str header into a pair .