Fix socket error messages in the Python library.

For some reason, Thrift's Python library doesn't include the exception message when a socket fails to connect.