I know I’m way late, but try either the os or the pathlib module to create a symlink, this makes it so you can edit files in a local directory but still have them sync with the files app.
@cvp , I understand. But I am still very happy. This will only be a matter of weeks before this stuff is working very well. Just to have the option is such a break through I think. I think the tech is secondary to the will to do it. The tech will get sorted out, the will to open the door has been the biggest issue:)
do report back on your experiments ... reading through the docs, i believe iCloud support had to be enabled in the info.plist for this to work. also it seems perhaps the app must be released in the app store.