I saw this code and it was astonished that it worked!
from collections import namedtuple MyStruct = namedtuple("MyStruct", "field1 field2 field