Converting a csv to vcards in Python
Read about the with statement and ALWAYS use it with file operations

with open( somefilename, 'rb' ) as source:
    reader = csv.reader( source )
    for row in reader:
       etc.


That guarantees that the file is closed and all OS resources released.