Python demo: predicting word similarity