This exists in kernel.util.Globals, but I am not sure if you are able to use it easily here or not.

This leads to a follow on question, which I am seriously considering splitting out a "tools" project that everything depends on. I don't want the kernel to be a dumping ground for utilities (which it currently is to some extent because it sits at the bottom). Thoughts?