how to use python automation library to save signal data to a csv file instead ploting it in real time?