Typescript Turn String Into Integer Python