updated w2v.py file