(Fixes #29) - Changed exception catching syntax to be accepted by older Python versions.