You can't index a set. Perhaps it would be better to use `w1 = list(ordered(solution.atoms(Symbol)))[0]`