fix an issue with Python 3.4

it does not crash anymore when throwing an exception from a C# code