Postgresql Row To Array Python Initialize Parent