So I have an RDD of something like this
RDD[(Int, List)]]
Where a single element in the RDD looks like
(1, List(1, 2, 3)) <
And in Python (based on @seanowen's answer):
rdd.flatMap(lambda x: map(lambda e: (x[0], e), x[1]))
rdd.flatMap { case (key, values) => values.map((key, _)) }