rmitm provides a DSL and useful ruby classes and python scripts for using mitmdump for automated testing.