buffer.c: Handle curve object as `PyObject *'.