Controlling resulting file during library export?

I do this thing where I have a script export my scene as a file, something I use for managing my projects. The problem is, when a scene is exported, the resulting file is entirely standard with regards to rendering settings and such. Can I somehow define how the render settings should be set in the file that results from exporting a scene to file?