refact evaluate.py .