Make it possible to change layer/sub_layer from Python without ill effects.