removed junk code added by previous commit to kml.py
updated tests for closer pep8 compatibility