Fixes to make shiblogin.py work with plain python

Hi Markus,

Two minor fixes for things I broke before - my fixes for SSL issues and for for the IdP python object worked only under jython and broke the plain python code.

This is a version that works with both.

Cheers,
Vlad