python: for loop in index assignment,[str(wi) for wi in wordids]