I have the following python script that write output for each 1seconds~ to log file as follow:
python myprocess.py >> mylog.csv
I have