Python3 metaclass compatability.