Added retrieval of hive type using enum

I notice that you tend to minimise imports, though I am not sure whether that is an actual decision or just that you rarely need them, however, I have used the "enum34" library to implement "proper" enums which have been introduced to python 3.

https://pypi.python.org/pypi/enum34

So users need to "sudo pip install enum34" before using