JacSimilarity.py - Out of index error in RandomWordDistribution function