Support Python 2.7.9 SSL

Python 2.7.9 includes a backport of the SSL module from Python 3,
which caused certificate verification failures to not be detected.

Bug: T78764
Change-Id: I745db16c74eddbeeb89a663170c25e3548532ca1