Move all the python version checks together