Fix exception_to_str to work on Python 2.x
Merge pull request #2104 from mdboom/exception_to_str

Bug in cbook.exception_to_str() in v 1.2