A simple implementation of MapReduce in Python