Pion production and bound nuclei