Update collector.py

store changes