Given the complexity of the .xml file, it might be better for me not to edit it directly.
I did try to re-specify the growth medium in CobraPy as indicated in the docs, using the model.medium helper. However, I might not have done this correctly.
It is clear to me how to drop a single reaction (e.g. oxygen exchange), but not how to replace the growth medium completely.
Shall I repeat the following steps for all the reactions which are included in the AGORA model:
medium = model.medium
medium["EX_co2_e"] = 0.0
model.medium = medium
model.medium
medium = model.medium
medium["EX_adn_e"] = 1000.0
model.medium = medium
model.medium