doucment that Py_SetPath copies its argument (closes #23110)
merge 3.4 (#23110)