@mdboom - actually I was going to ask, are there any circumstances under which the ``ssl`` module might not be available? If not, and it's guaranteed to be available, then there's some logic that can be simplified. Or might it be missing on certain installations of Python 2.6+?