def lis_to_bio_map(folder):
    """
    Senators have a lis_id that is used in some places. That's dumb. Build a
    dict from lis_id to bioguide_id which every member of congress has.
    """
    logger.info("Opening legislator csv for lis_dct creation")
    lis_dic = {}
    leg_path = "{0}/legislators.csv".format(folder)
    logger.info(leg_path)
    with open(leg_path, 'r') as csvfile:
        leg_reader = csv.reader(csvfile)
        for row in leg_reader:
            if row[22]:
                lis_dic[row[22]] = row[19]
    return lis_dic
def lis_to_bio_map ( folder ) : logger . info ( "Opening legislator csv for lis_dct creation" ) lis_dic = { } leg_path = "{0}/legislators.csv" . format ( folder ) logger . info ( leg_path ) with open ( leg_path , 'r' ) as csvfile : leg_reader = csv . reader ( csvfile ) for row in leg_reader : if row [ 22 ] : lis_dic [ row [ 22 ] ] = row [ 19 ] return lis_dic
Senators have a lis_id that is used in some places. That's dumb. Build a
    dict from lis_id to bioguide_id which every member of congress has.