apply pylint recommendations