Fix pylint errors for protected-access.