pynbt: catch type errors in PyObject_AsNBTName()