pidl/Python: stop processing if fail to create a PyObject from a C type