Fixed pylint warning for named tuple