Typescript Record To Array Python Initialize Parent