'dirname => {key: jsonobj}'

def load_json(self, dirname):

    files = glob.glob((os.path.join(dirname, self.objtype) + '/*.json'))
    blobs = [json.load(open(f)) for f in files]
    if (not blobs):
        files = glob.glob((os.path.join(dirname, 'bills') + '/*.json'))
        bills = [json.load(open(f)) for f in files]
        blobs = []
        for bill in bills:
            for v in bill.get('votes'):
                v['bill_id'] = fix_bill_id(bill['bill_id'])
                blobs.append(v)
    all_json = defaultdict(list)
    for d in blobs:
        key = (fix_bill_id(d['bill_id']), d['motion'].strip())
        all_json[key].append(d)
    return all_json
