'Insert cell contents into form at given locations'

def _populate_form(self, raw_form, mapping):

    form = copy.copy(raw_form)
    for (key, (iy0, ix0, width, height, cell_or_table)) in mapping.items():
        rect = cell_or_table.get()
        for (il, rectline) in enumerate(rect):
            formline = form[(iy0 + il)]
            form[(iy0 + il)] = ((formline[:ix0] + rectline) + formline[(ix0 + width):])
    return form
