Hi this blog post helps with Python and links to this example repo. Those examples are a bit old but should be helpful. The main thing is to enable the OTLP receivers in Tempo, using http or grpc based on which your application is exporting.
Of course, use proper Grafana cloud Tempo endpoint and auth and that’s it.
I would say that best practise is not sending traces directly from the code to remote trace storage (Tempo in Grafana Cloud). You should use local OTEL collector and that collector should send traces to remote trace storage. That local OTEL collector will provide additional resiliency (retry when export is failing, persistent queues, …), it may improve app latency (because app connects only to local collector).