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