A Python script to determine when a given time series has reached a statistically stationary state and if the final signal is periodic.