add groupby and expand mode of infiled

there's no package of python support xpath 2.0, we could not directly
use , such as, string-join ,which is only supported by xpath2.0. So I do
this kind of work in application level