update branchAndTrack to detect python version
and use shell for subprocess