Python library for x-ray data analysis