Python inherited namedtuple __new__ example