mapreduce python code example