I’m wondering, how this old code still works. Kia/Hyundai changed the API quite a bit - including rotating Hashes, which have to be up-to-date to allow access.
Please use “bluelinky” - the one linked at the very first sentence of this old (abandoned?) repo.
I know, it’s Javascript and no python, but works. If you have a NodeRed installation up, it’s a no-brainer, to just activate the NodeRed-contrib-Bluelinky there - as I did described here: