Removed unused import in middleware.py