Added 'SUPPORTED_CLASSES' to defs.py.
Added some exceptions.