Fixed agility.py issue