I've fixed multiple Python issues since this post was created, so I'm closing it as it's old. If anyone is still having problems with exporting Python scripts, feel free to create a new post.
sims4-mod-builder is a visual mod creation tool for The Sims 4. You describe what you want your mod to do — using a property editor, not raw XML — and the builder ...