Python code to generate Sunflow render scripts