Properly handle Perl exceptions in Python

Translate Perl exceptions into Python exceptions and make them catchable.
Still allows passing through Perl exceptions unharmed through Python space.