updated trends.py