Cleaned up evaluator.py

Cleaned up evaluator.py by moving the code for evaluating math operators
and if statements to helper functions