Python 3.2 compatibility concerning changes in the Exceptions-hierarchy