Fix various pylint issues [ci skip]