py3 correction for metaclass