What I don't see it doing, however, is filling out the callback
structure. In particular, I'm a little unclear on how open_tmp_file is
supposed to be populated; running without it results in a segfault when
svn tries to dereference the pointer, and trying to assign a Python
method fails as follows: