https://mitmproxy.org/
Proxy framework for performing MitM attacks/transformations. Provides a Python APi for scriptability