where_terms_loop cython
groupby (overcomplicated slow solution)