Hostname checking has been rolled into the SSL context and socket wrapping:
https://docs.python.org/3/library/ssl.html#ssl.SSLContext.check_hostname
Our current way of manually calling match_hostname is deprecated as of 3.7:
https://docs.python.org/3/library/ssl.html#ssl.match_hostname