Implement system for keeping track of reports that have not been submitted.
Improve readablity of output by removing some log messages.
Also record the PID of the process that created or failed to create the report.
Fix bug that lead to some reports not being submitted.

Pep8 related fixes.