python: expand snippet collection