Use copy rather than deepcopy when opening a new context.