So I guess it would be easier to write an entirely new program for android. I have seen several python scripts but either they dont put the photos into folders or they don’t like raws. Because actually the task is pretty simple. Unfortunately I can’t code at all.
The unmodified program won’t install unless you have root because Android doesn’t allow normal users access to the filesystem and devices (and even then, I’m not sure if the hierarchy is standard). It may install under fakeroot inside Termux (or Andronix) if you manage to find or compile all the Python dependencies, but you won’t have access to devices anyway.
Edit: I’m not an expert, I just happen to have been fighting with this lately to install some scientific software on my tablet