cleaned up error handling of xml
cleaned up error handling of xml

- added some more error handling to the xml calls
- mostly pedantic code clean up
- pep8'd the code

ghickman/tvrenamr,wintersandroid/tvrenamr