def with_metaclasses(metaclasses, *bases):
 return six.with_metaclass(compose_types(*metaclasses), *bases)

def with_metaclasses ( metaclasses , * bases ) : return six . with_metaclass ( compose_types ( * metaclasses ) , * bases )
make a class inheriting from bases whose metaclass inherits from all of metaclasses .