# create a new csv file
myoutputfile = open("C:\\example.csv", "w")
import time
start = time.ctime()
# do a bunch of stuff...
stop = time.ctime()
myoutputfile.write("Started: {0}\n".format(start)
myoutputfile.write("Finished: {0}\n".format(stop)
myoutputfile.close()