Fix the code quality tests in Python 3