calculate snr from fft python