How to fix the TypeError (list indices must be interger) in this program? : In one of the program I am using, I am getting a `TypeError` when trying to mine/parse a value out of `dict type` data.

    Error Type: <type 'exceptions.TypeError'>
    Error Value: list indices must be integers, not str

I tried to print the values of that dict (by adding a print statement) to see what was the issue. Below is a brief part of that python program:

    for c in results:
            print('value of c : ', c, type(c)) # what I added to see the issue with dict data
            for ci, lr in c['chain_info'].iteritems():
                outfile = open(lr.output_file, 'a')
                write = outfile.write

                if lr.number_vcf_lines > 0:
                    write(CHAIN_STRING.format(CHAIN_STRING,
                                from_chr=int(c['chrom']), from_length=lr.chromosome_length,
                                from_start=0, from_end=lr.chromosome_length,
                                to_chr=c['chrom'], to_length=lr.end_length,
                                to_start=0, to_end=lr.sums[0] + lr.last_fragment_size + lr.sums[2], id=c['chrom']))
                    write("\n")
    
    print('value of c : ', c, type(c)) # gave me
    ('value of c : ', {'chrom': '1', 'stats': OrderedDict([('ACCEPTED', 0)]), 'chain_info': {'right': <g2gtools.vcf2chain.VCFtoChainInfo object at 0x7fe9de396dd0>, 'left': <g2gtools.vcf2chain.VCFtoChainInfo object at 0x7fe9d9252d50>}}, <type 'dict'>)

What is the problem with this data/program??