from collections import namedtuple
Foo = namedtuple('Foo', ['a', 'b'])
type(Foo)
a = Foo(a=1, b=2)
a
Foo = namedtuple('whatsmypurpose', ['a', 'b'])
a = Foo(a=1, b=2)
a
Relevance of typename in namedtuple