Can you say again what is the problem that changing the handling here fixes?
AFAIK, copying Py_buffer structures around is OK.