[mod] extract Flexible iterator from spliter
[mod] remove useless iter call
autopep8
[enh] code the grouper