To run the script, you need to install python3 for your operating system.
https://www.python.org/downloads/
Then you need to install the requests
library by running:
pip install requests
Optional: Copy the script to a new directory, the script asks to save the tokens and order details in the current directory for reusing the tokens and for comparing the data with the last time you fetched the order details.
Then you can run the script by running:
python3 tesla_order_status.py