add Bag of Words to python wrapper