The script has moved to https://github.com/RustyDust/bluelink_refresh_token
There were a lot more problems with the script than I anticipated to I decided to move this to it's own repo. This will alow users to create issues and even PRs.
So go there