Python Process Json String To Integer Javascript