add python map and reduce