Typescript Loop Over Enumerator In Python