Update generate score.py