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