Fixed case APDU length == 0.
Replaced 'gettext' with 'ugettext'.
Raise 'ADPUClassNotSupportedError' exception if APDU class isn't supported.
Added 'IllegalOperationError' to defs.py.