A Python package for gamma-ray astronomy