Update ProxyMiddleware.py