attempt_literal_eval

PlasmaCalcs.tools.io_tools.attempt_literal_eval(s)

returns ast.literal_eval(s), or s if the literal_eval fails.