Use ast.literal_eval to convert string to tuple