DWPI: A computer program to calculate the inelastic scattering of pions from nuclei