Final stage of optimizing multigroup.pyx