Fixing pylint violations