It'd be nice if the code would work with python 2.7. As it is, some of the validation checking fails. For example, enum is not a default package in python2.7, and even after installing it, the enum.Enum values result in an integer type, not an enum.Enum.
For example:
>>> CryptographicAlgorithm.AES.__class__
<type 'int'>