same problem as similar-sentences-mapreduce but just done in python