Functionality in metaclasses can be changed so that whenever a class is built, a string is printed to standard output, or an exception is thrown. This metaclass will print the name of the class being built.
class VerboseMetaclass(type):
def __new__(cls, class_name, class_parents, class_dict)...