fix errors given by pylint