fixed exception handling
added newline to end of file
corrected indentation
made pep8 happy
made pep8 happy
made pep8 happy