Typescript Loop Through An Hashmap In Python