Faster version of Python 3.4's Enum implementation