Isospin effects on pion production by heavy ions