Fix main pylint errors thanks to Landscape.io analysis