map reduce using in Python