for every key and value in return value of the self._headers.values method, call the function to_bytes with 2 arguments: key,
headers = [ ( b': ' . join ( [ to_bytes ( key , 'ascii' ) , to_bytes ( value , 'latin-1' ) ] ) ) for key , value in self . _headers . values ( ) ]