Small workaround to make mitmproxy work again.

Further work is required to make scripts work again, though.