Fixed Python version check