Fix socket error formatting.
Add the exception to both messages.
Merge pull request #7 from edmodo/fix-socket-message

Fix socket error messages in the Python library.