mongodb map-reduce practice using pymongo