Quotes module fixes and whitelist; config moved to .py