Google Colab is a free online tool from Google that lets you write and run Python code directly in your browser.
When you use the Tor Browser, the only network traffic that's being masked is via the web browser. If you want more traffic anonymized and encrypted, you need to take a different approach.