py25 socket patch to work with ssl backport