My Python docs claim that `Py_SetProgramName` is used in part to set paths to run-time libraries.  I wonder if this shouldn't just be given as `startup_module`?