Typescript Create Enum From Array Python