class CertificateError(ValueError): ... def match_hostname(cert, hostname): ...