When I tested some Python code for different scenarios, I received the following error for the correct port, URL, username, and password:
SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message
I got the exact same error and traceback when I used a bogus username, and also when I used the correct username but the wrong password. Could it be expecting SSL v3, and the version that is installed is older? Just a guess. I didn't see anything in the Python code that set the SSL version number.