Fix backported ssl_match_hostname for http://bugs.python.org/issue17980

A recent setuptools added a copy of the match_hostname() function from the python3 stdlib.  However, the python3 stdlib has since been updated to fix a denial of service.  This branch ports the python3 fix to the setuptools copy.