I will hold off on integrating this for now then (and wait for your changes); in the meantime I will make a link to your repo on the OP.
I've committed an update that, if it pans out, rolls everything into one Python script...no auxiliary shell scripts. I'm testing it right now to verify that it behaves the same as the previous version.
I suspect I'll know in the morning.Edit: Just did some accelerated testing by manually switching to a less-profitable coin first...the script killed the miner and fired up the appropriate miner. I think the most recent update is ready for wider testing:
https://gitlab.com/salfter/nvoc-nicehash-switcher