def eval_expr(expr):
 return eval_node(ast.parse(expr).body[0].value)

def eval_expr ( expr ) : return eval_node ( ast . parse ( expr ) . body [ 0 ] . value )
evaluates arithmetic expression used in captcha .