Talk to the shell scripts from Python. Update shell scripts to make this simpler.