RPN Evaluator in Python