When you run mitmproxy (or possibly mitmweb) with the -s filename.py, any time you save the file it will trigger a reload of the file. This means any updated procedures in that file will then be called by the flows.
So what happens if the file you specify at the command-line is but the initialization for a whole suite of flow-manipulation python files? If you modify and save a file that is not directly referenced on the command-line, but it imported by that file, does it still trigger a reload?
Optionally, is there a way to then watch for changes on other files, like a xml of host and destination redirects, so that it’ll know to refresh the data therein?