Update candidate.py