[test] flake8 fixes in utils.py
[test] flake8 fixes in utils.py

A whitespace change, and remove a duplicate definition of a
function(!), keeping the second.

Signed-off-by: Rupert Swarbrick <290093e2ad2515ed2f14d749293c8cf8e02ca274@lowrisc.org>

lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan