python/kcc/graph: import KCCError, which is used somewhere