Pyflation is a Python package for calculating cosmological perturbations during an inflationary expansion of the universe