Avoid DeprecationWarnings in Python 2.6 (and only 2.6) for using Exception.message property