fixing python vs map reduce api