Export file

I am trying to build geometry using rhino inside cpython and export it as a GDF file. I have tried using the Rhino.RhinoApp.RunScript() method but without success. Am I missing something, or are there other possible ways to export files?