def METHOD_NAME(words):
  out = []
  for w in words:
    if w.tag == word_e.BracedWordTree:
      parts_list = _BraceExpand(w.parts)
      out.extend(ast.CompoundWord(p) for p in parts_list)
    else:
      out.append(w)
  return out