replace eval with ast.literal_eval