def get_addresses(filename):
 all_addresses = []
 with open(filename, 'rt') as f:
  reader = csv.reader(f)
  for row in reader:
   all_addresses.append(row)
 return all_addresses

def get_addresses ( filename ) : all_addresses = [ ] with open ( filename , 'rt' ) as f : reader = csv . reader ( f ) for row in reader : all_addresses . append ( row ) return all_addresses
given a csv file .