Before posting my question I read this but none of the solutions work.
I can successfully execute the script from commnd line:
python /path/to/tn-cli.p