Modify code to conform to flake8 and pylint.
Jobs are now flake8, pylint, py39 and metadata.
Test Plan
PASS - All zuul jobs pass as expected.
Story: 2010929
Task: 49284
Change-Id: I5e533c380e22a26bd0fc6f073a278c01e2a55614
Signed-off-by: Reed, Joshua <Joshua.Reed@windriver.com>