dorkitude/dstruct — Issue #1: You can use 'type' to do this
Author: umago
Created: 2011-11-25 18:12:58+00:00
State: open

obj = type("MyObject", (object, ), {"b1":"v1", "b2":"v2"})
obj.b1 #outputs 'v1'