Also i'm thinking in a read-only dict, plus a getter/setter.
That dict can only have a set of keys defined in the flags module, so the programmer have to read the warning before add a new one.
Again, this does not stops the developer to keep using flags.my_flag.