Creating new types in a fully dynamic manner http://stackoverflow.com/a/108297
>>> NewType = type("NewType", (object,), {"x": "hello"}) >>> n = NewType() >>> n.x "hello"