Power Spectrum Of A Double Pendulum In Python