better python 2.5 ssl checks