dynamic spectra using pygame