Spectral Analysis in Python