Updated code to reflect changes to dispersy/candidate.py.