ImportError: No module named enum when executing an inline script

Hi, I have following this documentation to create my own inline script. Suddenly I got an error which says
ImportError: No module named enum.
I run this inline script in windows 10 and python 3

def response(context, flow):
    flow.response.headers["newheader"] = "foo"

Hi deadstar1,
can you give us more details, as the mitmproxy launch command?

Hi @ Gigiarum, thank you for your response. I just execute this command:
mitmdump -s add_header.py -p 1234

to run add_header.py

The enum error is shown even if you start mitmdump with script parameter?