Python based class for mass spectrometry