pep8 fixes for spectrometry module