Got animate.py to work in headless environments