# /usr/bin/python
#-*- coding: utf-8 -*-

import os
tabla={}
os.chdir('c:\\111111')
fn=os.listdir('.')
input=open('autos.csv','r')
while 1:
	linea=input.readline()
	if not linea:
		break
	z=linea.split(',')
	z[1]=z[1][:-1]
	tabla[z[0]]=z[1]
input.close
#print tabla
#str(tabla)
for f in fn:
	try:
		tabla[z[0]]=fn
#		print tabla[f]

	except KeyError:
		continue

	#print "%s      %s" % (z[0],f)
	c="ren %s %s" %(z[0],z[1])
	os.system(c) 
