Adding whitelist feature to worker.py and settings.py.example