whitelist.py: Change get_fields function slightly. It's a little nicer now.