Validate Python version