"AI and machine learning, for which Python is well suited."
Wel perhapsl not really any more so than any other procedural or OO language. It just happens to be have been the prefered language of the sort of CS types working in AI in the last decade or so. And if you look at Tensorflow all the heavy lifting and GPU data flinging is actually done in libraries written in C++. You didn't have that with Lisp or Prolog - all the code down the stack was written in those languages (if you didn't count the compiler itself).