pidl:Python: check the return values of talloc_ptrtype()