built script in python for creating the vocabulary