Typescript Get Enum Name From String To Int Python Functions