Python 2/3 compatible metaclass in Enumeration