SPARK-1168, Added foldByKey to pyspark.