I think it would be more desirable for `partialCopy` to allocate memory as needed (making the function a misnomer...). Particularly from the point of view of a user of the Python wrapper, passing a string as a pointer is already a departure, but having to resize a string yourself is just strange.