Flush output of fit when we print the result
Write crude period and swing data to data pipe to python