Update legion.py