trnasform table keywords between javascript and python