pidl/s4/python: call export "export" in py exceptions