python get attribut object by string
x = getattr(t, 'attr1')
setattr(t, 'attr1', 21)
Nutty Narwhal
x = getattr(t, 'attr1')
setattr(t, 'attr1', 21)