Do you really need to write the map and reduce functions as a Javascript and supply them as strings? That certainly seems un-pythonic to me.
[1] http://api.mongodb.org/python/1.9%2B/examples/map_reduce.htm...
mapper = lambda x: (x['word'],1)
Or something of the the following flavor:
mapper = JSCode('function(x) {return (x.word,1)}')