migrate to using bash instead of python

I was having issues with python compatibility on different machines so just moved to bash instead of fighting that battle. Nothing I was doing was no easily doable in bash.