>>> Foo = type("Foo", (FooBase,), {'bar' : 42})<p>is not equivalent to what the blog post says it is to. FooBase should be defined before running this, and the blog post's equivalent make it look like this statement defines FooBase as well.