Always call PyErr_NoMemory if PyMem_New fails.