pymatcher: insert results using generator