finish traffic statistics.py