python: tests and plug a reference leak in the exception throwing code
python: docs for python-error