#!/usr/bin/pythonranks = {}with open("alexa.csv", "rU") as alexa: for row in alexa: values = row.split(',') ranks[values[1]] = values[0]with open("customers.csv", "rU") as customers: for row in customers: values = row.split(',') print ",".join([ranks[values[1]] if values[1] in ranks else "", values[0], values[1]]), #print (ranks[values[1]] if values[1] in ranks else "") + "," + values[0] + "," + values[1],