Make sure that match_hostname and CertificateError are available in
Python 3.1