Expression Evaluator in Python