Typescript Record To Array In Python