Add support for Python2 & 3 compatible metaclass usage