I need to make a bunch of class variables and I would like to do it by looping through a list like that:
vars=(\'tx\',\'ty\',\'tz\') #plus plenty more class Foo
Late to the party but use the type class constructor!
Foo = type("Foo", (), {k: 0 for k in ("tx", "ty", "tz")})