Typescript Record To Array Python Example Elif