compiler: eliminate lingering pyparsing import
lib/cpp: protocol exceptions
lib/cpp: type-safe enums