Fixed import in test_xml.py
Fixed pep8 errors.