And it depends on what you mean by "library". For statistics packages, yes, python is behind. But for general purpose computing, connecting to databases, and sheer number of packages available, python is way ahead (currently 4097 in CRAN vs. 24775 in PyPI).