updated for compliance with pep8, converted class methods to static where possible
updated for additional compliance with pep8
changed line endings to make pylint happy
made generic exceptions more specific
removed whitespace
removed reference to sys from kml.py
removed exception handling from kml.py serialization code; if it fails it should fail.