Typescript Enum Get String Python Functions W3schools