adjust except to be python3 compatible
Merge pull request #28 from henning/bugfix/adjust-python3-compatibility

adjust except to be python3 compatible