Change CLASS_ dictionaries

* Switch to class constants for keys in class names and specializations
* Switch from str.format() to %s