Install Homebrew then run this commands:
brew install pyenv pyenv install 2.7.18 pyenv global 2.7.18
As pyenv and python2 (required) is installed in user folder (
.pyenv), use following command to run
sudo .pyenv/versions/2.7.18/bin/python2 ~/TeamViewer-15-30-3-id-changer-for-mac.py
This script stop working with this method and TeamViewer 15.35.7 and newer.
Have a look at this Python 3 version by @STiXzoOR (fork here).
sudo python3 TeamViewer-15-id-changer.py
After many tryings with other / older scripts and furthere online recherching this script finally did it today - thanks!