Python didn't win, but it is popular in the data / ML / AI territory, and that ecosystem is attracting lots of developers. It's not about the quality of the language.
Ruby is everyone's favorite toy: Fun to play with, and you shouldn't do anything serious with it.