Added an __iter__ method to AttrTree