py3 compatible exception syntax

tests in https://github.com/mitsuhiko/babel/pull/84 failed due to py3 incompatible exception syntax