catches any exception now in order to remove the temporary file
analysis script now correctly checks for failures
pep8d
excluded some whitespace