Python KML library
pyKML is a Python package for parsing and authoring KML documents. It is based on the lxml.objectify API (http://codespeak.net/lxml/objectify.html) which provides Pythonic access to XML documents.<figure> </figure>
See the Package Documentation for information on installation and usage.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.