just use a Dict for this? Referencing un-set keys in a Dict is an exception in python, so it's just as safe.