game_report: Adapt the scripts to work in Borealis

The current Borealis image has Python 3.6 installed, but the original
scripts were written for Python 3.7+. Several minor fixes were applied
to make it possible to use these scripts in Borealis.

BUG=b:172581250
TEST=Tested with both crostini and borealis guests

Change-Id: I4aafebf273cfe1be777cb202009b80fbf3f19034
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2606919
Commit-Queue: Robert Tarasov <tutankhamen@chromium.org>
Tested-by: Robert Tarasov <tutankhamen@chromium.org>
Reviewed-by: Po-Hsien Wang <pwang@chromium.org>
3 files changed