fixing bug: AttributeError: DumpMaster instance has no attribute 'unload...
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index e76ea1ce33..39da8eb3d6 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -223,8 +223,7 @@ def shutdown(self):  # pragma: no cover
 
     def run(self):  # pragma: no cover
         if self.o.rfile and not self.o.keepserving:
-            for script in self.scripts:
-                self.unload_script(script)
+            self.unload_scripts()
             return
         try:
             return flow.FlowMaster.run(self)

Without this fix, I kept getting this error when using mitmdump -s bla.py -r somefile:

Traceback (most recent call last):
  File "/usr/local/bin/mitmdump", line 55, in <module>
    m.run()
  File "/usr/local/lib/python2.7/dist-packages/libmproxy/dump.py", line 227, in run
    self.unload_script(script)
AttributeError: DumpMaster instance has no attribute 'unload_script'
