Parameterization of pion production and reaction cross sections at LAMPF energies