Use the enum module. Documented psudo-random numbers-based tests not working on Python 3.