Updated python metaclass.