a list as a key for pyspark's reducebykey,"rdd.map(lambda k_v: (set(k_v[0]), k_v[1])).groupByKey().collect()"