BaseException.message is deprecated in Python 2.6 and gone in 3