Fix pylint complaints about logging