Python pidl: avoid segfault with "del obj->attr"