Let me take a stab:
I figure you either want to save something that is showing up in the
standard output in which case you can:
instead of using the print command to print to standard output, open a
file and append to that instead of printing, and then you can open
that up when you are done and see your results...
ex:
f1 = open("bla.txt","a")
f1.write('Wow, I love Python')
or you are using an interactive prompt and want to be able to rerun an
app:
you can write a file using python commands and then save it as a .py
file and run it using python in the command prompt....
read this for better answers:
http://www.diveintopython.org/
:)