Typescript Record To Array Python Initialize Empty