A python framework for playing with mass spectra