Python version check revised