If we say that any string passed through the api has to be quoted with double strings we can just use json.loads here instead, which seems nicer than doing an eval.