caching of Py_BuildValue