Add sanity check for Python version