Replaced api helper script with python version