def dicts2rows(dicts, classes):
    """
    Expands lists of table dictionaries into table class instances.

    dicts : dict
        Keys are canonical table names, values are lists of row dicts for that table.
    classes : dict
        Keys are canonical table names, values are table classes.

    """
    for table, dcts in dicts.items():
        cls = classes[table]
        dicts[table] = [cls(**dct) for dct in dcts]

    return dicts