...
$ git clone https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor.git
$ virtualenv Xiaomi-cloud-tokens-extractor -p python2.7
$ cd Xiaomi-cloud-tokens-extractor
$ source bin/activate
Install dependencies:
$ pip3 install pycryptodome pybase64 requests
Download and run script:
$ python3 token_extractor.py