scripts: first basic version of the sem bleaching map

absolutely untested, but pretty much all the basics are there.
scripts: fix bugs in sem bleaching map

now seems to be working on the simulator.