Python version of ODK aggregate. Will write in detail some other day.