converted mitmproxy-based connector from wsgi app to flow plugin