Fixing pylint false positive