https://sawtooth.hyperledger.org/docs/core/releases/latest/_autogen/txn_submit_tutorial.html Generally, to compile Python Protobufs you would follow these instructions to install Google’s Protobuf compiler and manually compile Python classes however you like.
This example will use classes from the Sawtooth Python SDK, which can be compiled by running the executable script bin/protogen.
Sawtooth protocol buffers aren't in the pip package so you have to generate them.