whitelist.py: Move VALID_OPTION_TYPES generation to head of file.