Pion dynamics at finite temperature