testsuite: fixed most pylint complaints