Fix imports in pipe.py