Update training.py