RDD sample() and takeSample() prototypes for PySpark