MapReduce in Python for simply problems