pipeline.py: add support for 'tag'