OK, looks like `PyObject_Init` raises an error when `obj == NULL`.