A python package for powder diffraction