Replace 'namedtuples' with 'dicts'