Sessionize code written in MapReduce