python programs demonstrating how MapReduce works