Update generate_training.py