OK. I know the experts have spoken and you should not ever use python\'s eval() on untrusted data, ever. I\'m not smarter than the rest of the world, and s
eval()
Try asteval, seems like the thing you need. Otherwise there is this safe eval