fix parameters on group and aggregate to match pymongo