Focal images do not provide 'python' anymore,
and this means that those scripts are broken
in that environment without this change.
And make sure the scripts are really py3 compatible
(fix a buffering issue)
Change-Id: I652e5d007d5a606f0fe89ac6b3ea76f765be1ae4
(cherry picked from commit 62982b5a4e)