adapt script handler arguments

to mitmproxy/mitmproxy#134