Add enum support from python 3.4