Python 3.4 enumeration inspired bit masks