Fix crash if python2 is not the primary python version