Python tools for gamma-ray data analysis