control the animation with pot.py