Plotting power spectrum in python - Stack Overflow