title: Safe expression parser in Python
body: <p>How can I allow users to execute mathematical expressions in a safe way?
  Do I need to write a full parser?</p>
  
  <p>Is there something like <a href="http://docs.python.org/library/ast.html#ast.literal_eval" rel="noreferrer">ast.literal_eval()</a>, but for expressions?</p>