Word2vec from scratch in Python