Don't validates certificates to be compatible with self-signed ones
Make this code compatible with Python 2.6