modify Mitmdump with DSL to replace API methods