Actually, I'm not sure that having a Python method return a Java object is right thing to do. Or is it?

`len(rdd.partitions())` works as you would expect, and so does `rdd.partitions().size()`, but I'm not sure how else this method might be used.