Rather than checking for Python explicitly, let the script interpreter handle things and print an error if the functionality is not supported.