Is this supposed to be a public method? From the examples it seems that you can call map and collect and such on the SchemaRDD itself. In that case this should be called _toPython to make it private, or you can inline it in the computation of _jrdd.