Python got a reputation for being good for quick prototyping.
Python had an easy to use CLI and supportive docs that made it easy to throw things together.
Case-in-point, the language literally includes functions like:
dir
That facilitate treating library objects as simple directories of functionality.Default arithmetic library supports APA.
There's just a lot of stuff that's frictionless in Python, where Ruby has sprawling and unintuitive syntax, and mandatory programming constructs.