If everything is an object, then a class is an object too, and it was made by something. That something is its metaclass, and unless you say otherwise it is type. A metaclass lets you take part in the making of a class: add to it, check it, register it. It is the deepest hook in the language, and one that most programs never need. Knowing how it works shows you how classes really are made, and what tools such as enumerations, abstract base classes and many libraries do under the surface.
More lessons in Complete Python Programming