Bitcoin-cli Remotely using Python

I want to run all bitcoin-cli commands through Python code. However, I need to to so remotely. So I would like to connect to my node using Tor address, and run bitcoin-cli commands through some code. So i basically want to generate transactions to receive and send money using Python and my remote node. Any documentation for this?