fixing pylint recommendations