Use new style exceptions.

This is part of the rework to get python3 working with raven.