added toJSON to pyspark SchemaRDD