Revert "Revert "pipeline.py: list comprehension for 'myfamily'""

This reverts commit 25968b45dfc3a3ae728862bf48adc2e94eda70ab.