Here is a little Rust program which should this for you. Not tested, but I guess it should work.
use flydra_mvg::{FlydraMultiCameraSystem, Result};
fn main() -> Result<()> {
let mut args = std::env::args();
let _exe_name = args.next();
let pymvg_fname = if let Some(pymvg_fname) = args.next() {
pymvg_fname
} else {
eprintln!("Expected exactly one argument: filename of pymvg file. Got none.");
std::process::exit(1);
};
println!("Reading pymvg file {pymvg_fname}");
let out_fname = format!("{pymvg_fname}.xml");
let calibration = FlydraMultiCameraSystem::<f64>::from_path(pymvg_fname)?;
let mut out_fd = std::fs::File::create(&out_fname)?;
calibration.to_flydra_xml(&mut out_fd)?;
Ok(())
}