You must not edit the root layer of the stage. Although this root layer is accessible through the Python API, the LOP cooking architecture requires that it be free to manage that root layer free from interference from any single LOP node.
There an an existing RFE to allow setting root prim metadata like this with the python LOP, and we have an idea on how to accomplish it, but the facility does not currently exist. For now you must use a Configure Layer LOP to set this kind of stage level root prim metadata.