Renamed flags.Flag to .Flags, removed str method from Flags so __repr__ and __str__ reports Flag(flags). Added __iter__ to Flags for if x in flags