They were, but Python is close to 5 years older than Ruby (February 1991 vs December 1995), so in the ‘00s, Python was significantly older than Ruby.
Ruby also was more or less a Japanese-only thing until around 2000. https://en.wikipedia.org/wiki/Ruby_(programming_language)#Ea...:
“In 1999, the first English language mailing list ruby-talk began”
“In September 2000, the first English language book Programming Ruby was printed, which was later freely released to the public“
In contrast, Python was posted on alt.sources from the get-go (https://en.wikipedia.org/wiki/History_of_Python#Early_histor...).
So, effectively, Python had about 9 years head start on Ruby in the English speaking world.
> when, in my opinion, Ruby is the better language
IMO, its flexibility makes it deceptively simple. Certainly, early users used its flexibility a bit too much to implement useful functionality that felt like spooky actions at a distance for newcomers.