fix ssl issues for python 2.5