Create legion.py