Fix TypeError with SSL and no keyfile in Python 3.