Updates Python version checking code.