See the documentation about installing tooling: https://learn.golem.cloud/docs/python-language-guide/setup
Generate bindings from WIT:
componentize-py bindings bindings
Package the Python code into a WASM component:
componentize-py componentize main -o component_name.wasm