Fix Python version comparison