Update middleware.py

from __future__ import unicode_literals