Switch from eval to ast.literal_eval