Why is this a list with one element dictionaries in it, rather than a dict of dicts?