Record NAO's joint positions and save the data or generate code to produce animations using FluentNAO (https://github.com/dnajd/FluentNao)
NAO recorder uses Kivy for its user interface. Follow the instructions at http://kivy.org/#download to install Kivy for your platform