#So brief, such Python! O.o >>> Object = lambda **kwargs: type("Object", (), kwargs) #Then you can use Object as a generic object constructor: >>> person = Object(name = "Bernhard", gender = "male", age = 42) >>> person.name 'Bernhard' >>>