converted for python 3.x
verify ssl connections