Remove use of deprecated BaseException.message.
Revert "Add support for Python 2.6."

This reverts commit c5c37457d657ea4d382ff0850de834267e02b1a8.