Fix bugs in way Python coverage analysis was being done.
Add debug argument to allow inspecting what is being uploaded.