pipeline.py: fix in asserting item_types