To Fix Value: dictionary update sequence element #0 has length 1; 2 is required Error just Use literal_eval. Just use literal_eval to solve this error. Just import it and it will solve the error. from ast import literal_eval