[misc/bench.py] Fix misc errors from pylint