Changed eval_math

Changed eval_math so that it no longer uses the dangerous python eval()