writing a hadoop mapreduce program in python