Simulate the concept by doing some local map reduce tasks using python