Attempt at fixing pylint errors