def foo(a): woo = [] a.words = {} for x in woo