Reference: https://music.stackexchange.com/questions/42315/lilypond-to-musicxml-to-sibelius
\include "oll-core/package.ily" \loadPackage lilypond-export opts.exporter = #exportMusicXML
\layout{ \FileExport #opts }
Now when running the file through Lilypond it should also produce a .xml file. I find the results to be better than the output from python-ly.