Add DuplicateException import to pipeline.py.