Python Library for Analyzing X-ray Spectra