Python Map-Reduce with itertools & multiprocessing in ~100loc
gist.github.com