I\'ve uploaded some addresses to BatchGeo and downloaded the resulting KML file from which I want to extract the coordinates. I managed to prettify the jumbled text file onl
from pykml import parser root = parser.fromstring(open('BatchGeo.kml', 'r').read()) print root.Document.Placemark.Point.coordinates
see the pykml docs
hope that helps!