when I run mitmproxy command in command line, I get the following error.
% mitmproxy Traceback (most recent call last): File \"/usr/local/bin/mitmproxy\",
In Python 3 instead of:
import thread
Do:
import _thread