Create kml from csv in Python,f.close()