clear exception on PyObject_CheckReadBuffer error