I have a class which takes in some arguments, with a method that takes and returns a namedtuple. The namedtuple itself is defined within the init based on