OK, that is working. Thanks to code borrowed from Maniac, and a new sdk built by keldath, I now have a promotion to grant double move on desert waste and deep desert. I will add this into the stillsuit promotion and give Fremen a UU set for scout, settler, soldier, worker. These UU are same as the standard units except for they get the double move for free. Moving on desert waste requires exploration tech, moving on deep desert requires stillsuit tech.
Also, I can modify the worm AI to ignore stacks containing only units with this promotion, same as they ignore thopter/hornet unitcombats.
This will make the Fremen early game raiders. I think this is enough for now. If we get a worm rider graphic, I can put the unit art swapping on; it won't affect the unit abilities, only the art.
If somebody wants to put a sandworm transport unit, that is fine too.
(EDIT: added considerably afterwards: Adding a set of UU for this seems redundant. Instead, I will add a few lines of python for onUnitBuilt which adds the promotion to any unit of the appropriate unitcombat for either Fremen civ. So, no more UU for that.)