how to transform string into dict,"out = [a, b, c, d, e, f]"