You could use subprocess here so ppl dont have to have psutil just to change a branch )