wsgi recording middleware