web3-flashbots is a repository containing a library that works by injecting a new module in the web3.py instance, which can submit "bundles" of transactions to block builders. This is done by creating
a middleware which captures calls to
eth_callBundle, and sends
them to an RPC endpoint which you have specified, which corresponds your preferred block builder.
To apply correct headers we use FlashbotProvider which injects the correct header on post
Access the web3-flashbots repository here.