Update middleware.py

RuntimeError: dictionary changed size during iteration
Update middleware.py
Update middleware.py
Merge branch 'master' of https://github.com/Dipsomaniac/django-statsd