Map Step
From http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/