Replaced Python 3 Exception syntax by the 2.4 syntax

Fixes #1