SPARK-1242 Add aggregate to python rdd